home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: mrbig0233@aol.com (MrBig0233)
- Newsgroups: comp.lang.c++
- Subject: HELP! Compile Error!
- Date: 5 Mar 1996 15:25:16 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4hi7vc$ggd@newsbf02.news.aol.com>
- Reply-To: mrbig0233@aol.com (MrBig0233)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- I am an 11-year-old (yes, no typo) programmer, and I am trying to write a
- sorting program for a merit badge. I compile the program, and the error
- is:
-
- SORT.CPP 7: Declaration terminated incorrectly
-
- This is the code:
-
- #include<conio.h>
- #include<stdio.h>
- #include<stdlib.h>
- #include<time.h>
- #include<string.h>
-
- {
-
- main()
- randomize(num1);
- randomize(num2);
- randomize(num3);
- randomize(num4);
- randomize(num5);
- if (strcmp(num1==<num2))
- {
- strcpy(num2,num1);
- }
- if (strcmp(num2==<num3))
- {
- strcpy(num3,num2);
- }
- if (strcmp(num3==<num4))
- {
- strcpy(num4,num3);
- }
- if (strcmp(num4==<num5))
- {
- strcpy(num5,num4);
- }
- printf("The numbers, in some order:\n");
- printf("%d, %d, %d, %d, %d",num1,num2,num3,num4,num5);
- return;
- }
-
- Please reply to this message! I NEED AN ANSWER!
- Please, in your answer, also tell me how to fix it.
-
- E-Mail:
-
- MrBig0233@aol.com
-